<?php
echo "<pre>";
$fh = fsockopen('192.168.4.184',80,$errno,$errstr,10);

$req = array(
	'GET /http/5.html HTTP/1.1',
	'HOST:localhost',
	'',
	''
);

$req = implode("\n",$req);

fwrite($fh,$req);

while($row = fread($fh,32)){
     echo $row;
}

fclose($fh);

echo "<pre>";
$fh = fsockopen('192.168.4.184',80,$errno,$errstr,10);
$req = array(
	'GET /http/5.html HTTP/1.1',
	'host:localhost',
	'',
	''
	);
$req = implode("\n",$req);
fwrite($fh,$req);
while($row = fread($fh,32)){
	echo $row;
}
fclose($fh);

echo "<pre>";
$fh = fsockopen('192.168.4.184',80,$errno,$errstr,10);
$req = array(
	'GET /http/5.html HTTP/1.1',
	'host: localhost',
	'',
	''
	);
$req = implode("\n", $req);
fwrite($fh,$req);
while($row = fread($fh,31)){
	echo $row;
}
fclose($fh);

echo "<pre>";
$fh = fsockopen('192.168.4.184',80,$errno,$errstr,10);
$req = array(
	'GET /http/5.html HTTP/1.1',
	'host: localhost',
	'',
	''
	);
$req = implode("\n",$req);
fwrite($fh,$req);
while($row = fread($fh,32)){
	echo $row;
}
fclose($fh);
